import Vue from 'vue'
import Vuex from 'vuex'
import mutations from "@/store/mutations";
import actions from "@/store/actions";
import getters from "@/store/getters";

// 1.安装插件
Vue.use(Vuex)
// 创建Store对象 挂载到Vue实例上
const state = {
  cartList:[]
}
export default new Vuex.Store({
  state,
  mutations,
  actions,
  getters,
  modules: {
  }
})
